//入口文件
console.log("入口文件");


//统一暴露
// — 选择部分暴露
import {
    add,
    pro,
    PI
} from "./cals"
console.log("统一暴露，选择接收", add, pro, PI);
// — 全部暴露
import * as cals from "./cals" //as取别名
console.log("统一暴露统一接收", cals);



//分别暴露：
// — 跟统一暴露一样
import {
    person,
    time,
    say,
    address
} from "./mes"
console.log(person, say);

import * as mes from "./mes"
console.log(mes);




//默认暴露
// import {
//     default as say
// } from "./say"

import a from "./say"
console.log(a);



// 验证默认暴露暴露的是一个对象
import * as o from "./say"
console.log("o", o);